﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        String str = (String)this.Session["CheckCode"];
        if(!str.Equals(TextBox3.Text))
        {
            this.Response.Redirect("Default.aspx");
        }
        else
        {
            this.Session["YanZhengMa"] = "输的验证码正确!";
            this.Response.Redirect("Success.aspx");
        }
    }
}